package com.gzz.orchid.common.webmvc.configuration;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.context.annotation.PropertySources;

/**
 * @author higmd
 */
@Data
@PropertySources({
        @PropertySource(value = "classpath:customer.properties", ignoreResourceNotFound = true, encoding = "utf-8"),
        @PropertySource(value = "classpath:custom.properties", encoding = "utf-8")
})
@ConfigurationProperties(prefix = "customer", ignoreInvalidFields = true)
public class CustomParameter {
    private String name;
    private String age;
    private String sex;
    private String address;
    private String accessToken;
}
